C# 调用者信息获取
做日志组件时,常常会记录调用者信息,通常都是通过反射来获取相应信息。不过.Net 4.5引入了三个新的特性,即CallerFilePathAttribute,CallerLineNumber ...
做日志组件时,常常会记录调用者信息,通常都是通过反射来获取相应信息。不过.Net 4.5引入了三个新的特性,即CallerFilePathAttribute,CallerLineNumber ...